package com.helwen.restaurantbooking;

import com.helwen.restaurantbooking.bo.IBookingBo;
import com.helwen.restaurantbooking.datalayer.entities.TblBooking;
import com.helwen.restaurantbooking.helper.BeanManagerHelper;
import java.util.List;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        BeanManagerHelper bean=new BeanManagerHelper();
        IBookingBo bookingBo=(IBookingBo) BeanManagerHelper.getBean("bookingBo");
        System.out.println(bookingBo);
        List<TblBooking> tblBookings=bookingBo.getAllBookingInfo();
        for (TblBooking tblBooking : tblBookings) {
            System.out.println(tblBooking.getCustomerName());
        }
    }
}
